package com.sscw.tcp.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.guaike.core.mybatis.plugins.BaseDAO;
import com.sscw.tcp.entity.GConfDevicePO;
import com.sscw.tcp.mapper.GConfDeviceMapper;
import org.springframework.stereotype.Repository;


@Repository
public class GConfDeviceDAO extends BaseDAO<GConfDeviceMapper, GConfDevicePO> {


    public GConfDevicePO findOneDeviceNoIsNull() {
        LambdaQueryWrapper<GConfDevicePO> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.isNull(GConfDevicePO::getSerialNumber);
        return getBaseMapper().selectOne(queryWrapper);
    }

}
